package com.ofek.eventos;

import java.io.Serializable;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.widget.TextView;

import com.ofek.eventos.db.EventosDatabaseService;

public class ArchiveActivity extends EventsFragmentActivity {
	public static class ContextListFragment extends PageFragment {
		@Override
		protected void updateData(final EventosDatabaseService eventosService2) {
			if (eventosService2==null) return;
			//			final ArrayList<Event> events = eventosService2.getArchive();
			//			if ( events!=null) setEventsToShow(events);
		}
	}

	public static final String KEY_NEWEST = "KEY_NEWEST";

	private ContextListFragment onlyFrag;
	@Override
	protected void onCreate(final Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.activity_eventos);
		((TextView) findViewById(R.id.sub_header_text)).setText(R.string.new_requests);
		changeFrgment(onlyFrag = new ContextListFragment());
		final Bundle bundle = new Bundle();
		final Serializable serializableExtra = getIntent().getSerializableExtra(KEY_NEWEST);
		bundle.putSerializable(KEY_NEWEST, serializableExtra);
		onlyFrag.setArguments(bundle);
	}


	@Override
	public void onShowing(final Fragment frag) {

	}

	@Override
	public void onEditChecked(final boolean edit) {
		onlyFrag.setEdit(edit);
	}

	@Override
	public void onAddClicked() {

	}

	@Override
	public void onSearchClicked() {

	}
}
